package com.wn.date20190814;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

public class SetTest
{
	public static void main(String[] args)
	{
		HashSet<User> users=new HashSet<User>();
		User qwe=new User("aaa");
		System.out.println("------------"+qwe);
		users.add(qwe);
		users.add(new User("bbb"));
		users.add(new User("ccc"));
		users.add(new User("ddd"));
		User ssUser=new User("aaa");
		System.out.println("------------"+ssUser);
		users.add(ssUser);
		users.forEach(System.out::println);
		
		Map<Integer, String> maa=new HashMap<>();
		maa.put(1, "qwe");
		maa.put(2, "qwe");
		maa.put(3, "qwe");
		maa.put(4, "qwe");
		maa.put(5, "qwe");
		
	}
}
